import Vue from 'vue'
import Router from 'vue-router'
import home from '@/page/home/index.vue'
import login from '@/page/login/index.vue'
import regist from '@/page/regist/index.vue'
import trainNum from '@/page/trainNum/index.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: home
    },
    {
      path: '/login',
      name: 'login',
      component: login,
    },
    {

      path:'/regist',
      name:'regist',
      component: regist
    },
    {
      path: '/trainNum',
      name: 'TrainNum',
      component: trainNum,
    },

  ]
})
